package coin.yang.thread;

public class RunnableDemo {

    public static void main(String[] args) {

        // 构建RDemo对象
        RDemo r = new RDemo();
        // 构建Thread
        Thread t = new Thread(r);
        // 启动线程
        t.start();

    }

}

class RDemo implements Runnable {
    @Override
    public void run() {
        System.out.println("running");
    }
}